package service;

import dao.Impl.UserDaoImpl;
import dao.UserDao;
import org.nfentity.User;

/**
 * @Author czl
 * @Date 2024-04-22
 */
public class UserService {
    /**
     * 用户登录
     *
     * @param username
     * @param password
     */
    public User login(String username, String password) {
        // 实例化 DAO 对象
        UserDao userDao = new UserDaoImpl();
        return userDao.selectUser(username,password) ;
    }
}
